/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author WinKiQue58
 */
@Embeddable
public class PointStatusPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_Point Status")
    private BigInteger idPointStatus;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_POINT")
    private BigInteger idPoint;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_ROUTE")
    private BigInteger idRoute;

    public PointStatusPK() {
    }

    public PointStatusPK(BigInteger idPointStatus, BigInteger idPoint, BigInteger idRoute) {
        this.idPointStatus = idPointStatus;
        this.idPoint = idPoint;
        this.idRoute = idRoute;
    }

    public BigInteger getIdPointStatus() {
        return idPointStatus;
    }

    public void setIdPointStatus(BigInteger idPointStatus) {
        this.idPointStatus = idPointStatus;
    }

    public BigInteger getIdPoint() {
        return idPoint;
    }

    public void setIdPoint(BigInteger idPoint) {
        this.idPoint = idPoint;
    }

    public BigInteger getIdRoute() {
        return idRoute;
    }

    public void setIdRoute(BigInteger idRoute) {
        this.idRoute = idRoute;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idPointStatus != null ? idPointStatus.hashCode() : 0);
        hash += (idPoint != null ? idPoint.hashCode() : 0);
        hash += (idRoute != null ? idRoute.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PointStatusPK)) {
            return false;
        }
        PointStatusPK other = (PointStatusPK) object;
        if ((this.idPointStatus == null && other.idPointStatus != null) || (this.idPointStatus != null && !this.idPointStatus.equals(other.idPointStatus))) {
            return false;
        }
        if ((this.idPoint == null && other.idPoint != null) || (this.idPoint != null && !this.idPoint.equals(other.idPoint))) {
            return false;
        }
        if ((this.idRoute == null && other.idRoute != null) || (this.idRoute != null && !this.idRoute.equals(other.idRoute))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entity.PointStatusPK[ idPointStatus=" + idPointStatus + ", idPoint=" + idPoint + ", idRoute=" + idRoute + " ]";
    }
    
}
